package com.sex.bull.melancholy.service.mybatis.dao;

import com.sex.bull.melancholy.service.mybatis.bean.DictCustomerProperty;
import com.sex.bull.melancholy.service.mybatis.dao.base.BaseDao;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by LiM on 2017/8/7.
 */
@Service
public class DictCustomerPropertyDao extends BaseDao {
    /**
     * 根据英文名称查找
     * @param list
     * @return
     * @throws Exception
     */
    public List<DictCustomerProperty> getEnHas(List<String> list) throws Exception{
        return this.sqlSession.selectList(DictCustomerProperty.class.getName() + ".selectHas", list);
    }

    /**
     * 批量逻辑删除
     * @param list
     * @throws Exception
     */
    public void  deleteDataBat(List<String> list) throws Exception{
        this.sqlSession.update(DictCustomerProperty.class.getName() + ".deleteDataBat", list);
    }
}
